package top.drinyeit.weilong.entity;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by Erebus on 2017/04/22
 */
public class LoginResult {

    private AppUser user;
    public AppUser getUser() {
        return user;
    }
    public void setUser(AppUser user) {
        this.user = user;
    }

    @Table(name = "user")
    public static class AppUser {
        public AppUser() {
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getShopStatus() {
            return shopStatus;
        }

        public void setShopStatus(String shopStatus) {
            this.shopStatus = shopStatus;
        }

        public String getUserKey() {
            return userKey;
        }

        public void setUserKey(String userKey) {
            this.userKey = userKey;
        }

        public String getUserToken() {
            return userToken;
        }

        public void setUserToken(String userToken) {
            this.userToken = userToken;
        }

        public String getUserCode() {
            return userCode;
        }

        public void setUserCode(String userCode) {
            this.userCode = userCode;
        }

        public String getNoticeText() {
            return noticeText;
        }

        public void setNoticeText(String noticeText) {
            this.noticeText = noticeText;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserPhone() {
            return userPhone;
        }

        public void setUserPhone(String userPhone) {
            this.userPhone = userPhone;
        }

        public String getNoticeTitle() {
            return noticeTitle;
        }

        public void setNoticeTitle(String noticeTitle) {
            this.noticeTitle = noticeTitle;
        }

        public String getNoticeFlg() {
            return noticeFlg;
        }

        public void setNoticeFlg(String noticeFlg) {
            this.noticeFlg = noticeFlg;
        }

        @Column(name = "id", isId = true)
        private int id;
        public AppUser(String shopStatus, String userKey, String userToken, String userCode, String noticeText, String userName, String userPhone, String noticeTitle, String noticeFlg) {
            this.shopStatus = shopStatus;
            this.userKey = userKey;
            this.userToken = userToken;
            this.userCode = userCode;
            this.noticeText = noticeText;
            this.userName = userName;
            this.userPhone = userPhone;
            this.noticeTitle = noticeTitle;
            this.noticeFlg = noticeFlg;
        }

        @Column(name = "shop_status")
        private String shopStatus;
        @Column(name = "user_key")
        private String userKey;
        @Column(name = "user_token")
        private String userToken;
        @Column(name = "user_code")
        private String userCode;
        @Column(name = "notice_text")
        private String noticeText;//
        @Column(name = "user_name")
        private String userName;
        @Column(name = "user_phone")
        private String userPhone;//
        @Column(name = "notice_title")
        private String noticeTitle;//
        @Column(name = "notice_flg")
        private String noticeFlg;//

        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        private String msg;
    }

}
